import React, { PureComponent } from 'react'
import Topic from './commen/Topic'
import List from './commen/List'
import Recommend from './commen/Recommend'
import Article from './commen/Article'
import { connect } from 'react-redux'
import  { actionCreators }  from './store'
import {
    HomeWrapper,
    HomeLeft,
    HomeRight
} from './style.js'
class Login extends PureComponent {
    render () {
        return (
            <div>
                login
            </div>
        )
    }

    componentDidMount () {
        this.props.getHomeList()
    }
}

const mapDispatchToProps = (dispatch) => ({
    getHomeList () {
        dispatch(actionCreators.getHomeData())
    }
})



export default connect(null, null)(Login)